package com.project.rbac.mapper;

import com.project.rbac.entity.SysDept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author nickBoy
 * @since 2021-06-15
 */
@Mapper
public interface SysDeptMapper extends BaseMapper<SysDept> {

    int countByNameAndParentId(@Param("parentId") Integer parentId, @Param("name") String name, @Param("id") Integer id);
}
